package net.roobook.cms.modules.admin.entity;

import net.roobook.cms.common.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;

/**
 * 栏目
 */
@Table(name = "sys_category")
public class Category extends BaseEntity<Category>{
	@Column(name = "cnname")
    private String cnname;

	@Column(name = "enname")
    private String enname;

	@Column(name = "code")
    private String code;
    
	@Column(name = "cat_seq")
    private String catSeq;

	@Column(name = "image_path")
    private String imagePath;

	@Column(name = "description")
    private String description;

	@Column(name = "link_target")
    private String linkTarget;

	@Column(name = "page_size")
    private Integer pageSize;

	@Column(name = "cat_model")
    private Integer catModel;

	@Column(name = "visit_url")
    private String visitUrl;

	@Column(name = "cover_temp")
    private String coverTemp;

	@Column(name = "list_temp")
    private String listTemp;

	@Column(name = "article_temp")
    private String articleTemp;

	@Column(name = "link_url")
    private String linkUrl;

	@Column(name = "default_editor")
    private String defaultEditor;

	@Column(name = "parent_id")
    private String parentId;

	@Column(name = "is_show")
    private Integer isShow;

	@Column(name = "level")
    private String level;
    
	@Column(name = "sort")
    private Integer sort;
    
	@Column(name = "is_input")
    private Integer isInput;

	@Column(name = "ext01")
    private String ext01;

	@Column(name = "ext02")
    private String ext02;

	@Column(name = "ext03")
    private String ext03;

	@Column(name = "ext04")
    private String ext04;

	@Column(name = "ext05")
    private String ext05;
	
	@Column(name = "md_content")
    private String mdContent;

	@Column(name = "html_content")
    private String htmlContent;
	
	@Transient
    private String parentName;

	@Transient
    private List<Category> nodes;

	@Transient
	private Integer childrenFlag;

	public String getCnname() {
		return cnname;
	}

	public void setCnname(String cnname) {
		this.cnname = cnname;
	}

	public String getEnname() {
		return enname;
	}

	public void setEnname(String enname) {
		this.enname = enname;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getCatSeq() {
		return catSeq;
	}

	public void setCatSeq(String catSeq) {
		this.catSeq = catSeq;
	}

	public String getImagePath() {
		return imagePath;
	}

	public void setImagePath(String imagePath) {
		this.imagePath = imagePath;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getLinkTarget() {
		return linkTarget;
	}

	public void setLinkTarget(String linkTarget) {
		this.linkTarget = linkTarget;
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}

	public Integer getCatModel() {
		return catModel;
	}

	public void setCatModel(Integer catModel) {
		this.catModel = catModel;
	}

	public String getVisitUrl() {
		return visitUrl;
	}

	public void setVisitUrl(String visitUrl) {
		this.visitUrl = visitUrl;
	}

	public String getCoverTemp() {
		return coverTemp;
	}

	public void setCoverTemp(String coverTemp) {
		this.coverTemp = coverTemp;
	}

	public String getListTemp() {
		return listTemp;
	}

	public void setListTemp(String listTemp) {
		this.listTemp = listTemp;
	}

	public String getArticleTemp() {
		return articleTemp;
	}

	public void setArticleTemp(String articleTemp) {
		this.articleTemp = articleTemp;
	}

	public String getLinkUrl() {
		return linkUrl;
	}

	public void setLinkUrl(String linkUrl) {
		this.linkUrl = linkUrl;
	}

	public String getDefaultEditor() {
		return defaultEditor;
	}

	public void setDefaultEditor(String defaultEditor) {
		this.defaultEditor = defaultEditor;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public Integer getIsShow() {
		return isShow;
	}

	public void setIsShow(Integer isShow) {
		this.isShow = isShow;
	}

	public String getLevel() {
		return level;
	}

	public void setLevel(String level) {
		this.level = level;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public Integer getIsInput() {
		return isInput;
	}

	public void setIsInput(Integer isInput) {
		this.isInput = isInput;
	}

	public String getExt01() {
		return ext01;
	}

	public void setExt01(String ext01) {
		this.ext01 = ext01;
	}

	public String getExt02() {
		return ext02;
	}

	public void setExt02(String ext02) {
		this.ext02 = ext02;
	}

	public String getExt03() {
		return ext03;
	}

	public void setExt03(String ext03) {
		this.ext03 = ext03;
	}

	public String getExt04() {
		return ext04;
	}

	public void setExt04(String ext04) {
		this.ext04 = ext04;
	}

	public String getExt05() {
		return ext05;
	}

	public void setExt05(String ext05) {
		this.ext05 = ext05;
	}

	public String getMdContent() {
		return mdContent;
	}

	public void setMdContent(String mdContent) {
		this.mdContent = mdContent;
	}

	public String getHtmlContent() {
		return htmlContent;
	}

	public void setHtmlContent(String htmlContent) {
		this.htmlContent = htmlContent;
	}

	public String getParentName() {
		return parentName;
	}

	public void setParentName(String parentName) {
		this.parentName = parentName;
	}

	public List<Category> getNodes() {
		return nodes;
	}

	public void setNodes(List<Category> nodes) {
		this.nodes = nodes;
	}

	public Integer getChildrenFlag() {
		return childrenFlag;
	}

	public void setChildrenFlag(Integer childrenFlag) {
		this.childrenFlag = childrenFlag;
	}
}